package com.bjx.flow.mmx.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.bjx.common.core.domain.group.Update;

/**
 * @desc: 流程变量VO实体
 * @author: liushuai
 * @date: 2023/05/22
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "FlowVariablesVO",description = "流程变量VO实体")
public class MmxFlowVariablesVO {
        /**
        * 变量Id
        */
        @NotNull(message = "变量Id不能为空",groups = Update.class)
        @Schema(title = "variablesId",description = "变量Id")
        private  Long variablesId; 
        /**
        * 实例Id
        */
        @NotNull(message = "实例Id不能为空")
        @Schema(title = "instanceId",description = "实例Id")
        private  Long instanceId; 
        /**
        * 分支Id
        */
        @NotNull(message = "分支Id不能为空")
        @Schema(title = "branchId",description = "分支Id")
        private  Long branchId; 
        /**
        * 变量Key
        */
        @NotNull(message = "变量Key不能为空")
        @Size(max = 64,message = "变量Key长度为1到64个字符")
        @Schema(title = "variablesKey",description = "变量Key")
        private  String variablesKey; 
        /**
        * 变量Value
        */
        @Size(max = 512,message = "变量Value长度为1到512个字符")
        @Schema(title = "variablesValue",description = "变量Value")
        private  String variablesValue; 
}